Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching only finalized SAs #3403

Open
wants to merge 2 commits into
base: release/v6.5.2
Choose a base branch
from

Conversation

u-hubar
Copy link
Member

@u-hubar u-hubar commented Nov 6, 2024

No description provided.

@u-hubar u-hubar added improvement Improvements or enhancements to existing features v6 Issue or development for OT-node version 6 labels Nov 6, 2024
@u-hubar u-hubar self-assigned this Nov 6, 2024
@@ -91,13 +95,6 @@ class BlockchainGetLatestServiceAgreement extends Command {
};
}

if (latestBlockchainTokenId < latestDbTokenId) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate condition there is the same one right before that

@@ -46,6 +46,13 @@ class HandleStoreRequestCommand extends HandleProtocolMessageCommand {
tokenId,
);
const stateIndex = assertionIds.length - 1;

if (assertionId !== assertionIds[stateIndex]) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we already do this in validation command

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvements or enhancements to existing features v6 Issue or development for OT-node version 6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants